package oo

//Address 地址结构体
type Address struct {
	Province   string
	City       string
	area string
	CreateTime string
}

//Email 邮箱结构体
type Email struct {
	Account    string
	CreateTime string
}



type user struct {
	Name   string
	Gender string
	CreateTime string
	Address
	Email
}



func nestStruct() *user{
	var user3 user
	user3.Name = "pprof"
	user3.Gender = "女"
	user3.CreateTime = "2019" //ambiguous selector user3.CreateTime
	user3.Address.CreateTime = "2000" //指定Address结构体中的CreateTime
	user3.Email.CreateTime = "2000"
	return &user3
}